/*
 * Copyright (c) 2010-2011 NOO. All Rights Reserved.
 * [Id:Account.java  11-10-5 下午10:37 poplar.yfyang ]
 */
package org.mumu.pawn.model;

import org.mumu.pawn.domain.Department;
import org.mumu.pawn.domain.Role;

import java.io.Serializable;

/**
 * <p>
 *  用户信息，用户存放在Session中.
 * </p>
 *
 * @author poplar.yfyang
 * @version 1.0 11-10-5 下午10:37
 * @since JDK 1.5
 */
public class Account implements Serializable{
    private static final long serialVersionUID = 4887201161004869214L;

   /*
    *主键
    */
    private long id;
    /*
     *用户名称
     */
    private String userName;
    /*
     *用户密码
     */
    private String password;
    /*
     *用户性别
            0-男性
            1-女性
     */
    private String gender;
    /*
     *用户昵称
     */
    private String nickName;

     /*
     *主角色
     */
    private Role rule;
    /*
     *主部门
     */
    private Department department;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Role getRule() {
        return rule;
    }

    public void setRule(Role rule) {
        this.rule = rule;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }
}
